package com.edu.gcu.manager.service;

import com.edu.gcu.system.common.ServerResponse;
import com.edu.gcu.system.pojo.Gift;
import com.github.pagehelper.PageInfo;

/**
 * @author polo
 * @version V1.0
 * @description: 积分service接口
 * @date 2018-02-20-12:22
 */

public interface IIntegralService {
    /*
     * 兑换商品
     * */
    ServerResponse delete(String id, String giftId);

    ServerResponse update(String id, Gift gift);

    ServerResponse change(String id, String giftId, Integer status);

    ServerResponse<PageInfo> list(String name, Integer status, String orderBy, Integer pageNum,
                                  Integer pageSize);

    ServerResponse add(String id, Gift gift);

    ServerResponse detail(String id);

    /*
     * 兑换记录
     * */
    ServerResponse detailRecord(String id);

    ServerResponse<PageInfo> listRecord(String name, String orderBy, Integer pageNum,
                                        Integer pageSize);
}
